<template>
	<view>
		<!-- 选择客户 -->
		<u-picker :show="message.cangkuShow" :columns="columnscangku" @cancel="cangkuconfirm" @confirm="cangkuconfirm"
			keyName="name"></u-picker>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		name:"selectcangku",
		props:{
			message:{}
		},
		data() {
			return {
				columnscangku:[]
			};
		},
		mounted() {
			httpRequest.request('appapi/manage/store/all', 'POST', {}, false, false, true).then(res => {
				this.columnscangku.push(res.data)
			})
		},
		methods:{
			cangkuconfirm(e){
				this.$emit("cangkuSure", e);
			}	
		}
	}
</script>

<style>

</style>